import type { IndustryItem } from "@/types/common";
import type { EnterpriseDetail } from "@/types/enterprise";
import type { EmptyObject, LoginParams } from "@/types/user";
import { Http } from "@/utils/reuqest";

export const loginAPI = (data:LoginParams) => Http.post<EmptyObject>('/park/login',data)

/**
 * 获取所属行业列表
 * **/
export const getIndustryListAPI = () => Http.get<IndustryItem[]>("/park/industry")


/*
 新增企业
**/
export const addEnterPriseAPI = (data: EnterpriseDetail) => Http.post<null>("/park/enterprise", data)